﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Common.Core;
using Microsoft.AspNet.Identity.EntityFramework;
using Data.AggregateRoot;

namespace Data.IdentityEntities
{
    public class AppUserRole: IdentityUserRole<Guid>, IPrimaryKey<Guid>,ISoftDelete
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public Guid Id { get; set; } = GuKey.NewId();

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 是否删除
        /// </summary>
        [DefaultValue(false)]
        public bool IsDel { get; set; } = false;

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeleteTime { get; set; }
    }
}